package org.omg.GIOP;

//
// Enum definition : ReplyStatusType_1_2
//
// @author OpenORB Compiler
//
public final class ReplyStatusType_1_2 implements
		org.omg.CORBA.portable.IDLEntity {
	//
	// Internal member value
	//
	private int _ReplyStatusType_1_2_value;

	//
	// Enum member NO_EXCEPTION value
	//
	public static final int _NO_EXCEPTION = 0;

	//
	// Enum member NO_EXCEPTION
	//
	public static final ReplyStatusType_1_2 NO_EXCEPTION = new ReplyStatusType_1_2(
			_NO_EXCEPTION);

	//
	// Enum member USER_EXCEPTION value
	//
	public static final int _USER_EXCEPTION = 1;

	//
	// Enum member USER_EXCEPTION
	//
	public static final ReplyStatusType_1_2 USER_EXCEPTION = new ReplyStatusType_1_2(
			_USER_EXCEPTION);

	//
	// Enum member SYSTEM_EXCEPTION value
	//
	public static final int _SYSTEM_EXCEPTION = 2;

	//
	// Enum member SYSTEM_EXCEPTION
	//
	public static final ReplyStatusType_1_2 SYSTEM_EXCEPTION = new ReplyStatusType_1_2(
			_SYSTEM_EXCEPTION);

	//
	// Enum member LOCATION_FORWARD value
	//
	public static final int _LOCATION_FORWARD = 3;

	//
	// Enum member LOCATION_FORWARD
	//
	public static final ReplyStatusType_1_2 LOCATION_FORWARD = new ReplyStatusType_1_2(
			_LOCATION_FORWARD);

	//
	// Enum member LOCATION_FORWARD_PERM value
	//
	public static final int _LOCATION_FORWARD_PERM = 4;

	//
	// Enum member LOCATION_FORWARD_PERM
	//
	public static final ReplyStatusType_1_2 LOCATION_FORWARD_PERM = new ReplyStatusType_1_2(
			_LOCATION_FORWARD_PERM);

	//
	// Enum member NEEDS_ADDRESSING_MODE value
	//
	public static final int _NEEDS_ADDRESSING_MODE = 5;

	//
	// Enum member NEEDS_ADDRESSING_MODE
	//
	public static final ReplyStatusType_1_2 NEEDS_ADDRESSING_MODE = new ReplyStatusType_1_2(
			_NEEDS_ADDRESSING_MODE);

	//
	// Return the internal member value
	// @return the member value
	//
	public int value() {
		return _ReplyStatusType_1_2_value;
	}

	//
	// Return a enum member from its value
	// @param an enum value
	// @return an enum member
	//
	public static ReplyStatusType_1_2 from_int(int value) {
		switch (value) {
		case 0:
			return NO_EXCEPTION;
		case 1:
			return USER_EXCEPTION;
		case 2:
			return SYSTEM_EXCEPTION;
		case 3:
			return LOCATION_FORWARD;
		case 4:
			return LOCATION_FORWARD_PERM;
		case 5:
			return NEEDS_ADDRESSING_MODE;
		}
		throw new org.omg.CORBA.BAD_OPERATION();
	}

	//
	// Private constructor
	// @param the enum value for this new member
	//
	private ReplyStatusType_1_2(int value) {
		_ReplyStatusType_1_2_value = value;
	}

}
